<html>
<head>
	<meta charset="UTF-8">
	<title>threejs-展示</title>
    <style type="text/css">
        body{ margin: 0; }
    </style>
	<script src="../1js/threeJs/three.min.js"></script>
</head>
<body>

<script type="text/javascript">
//实例化渲染器
const renderer = new THREE.WebGLRenderer();
//实例化渲染器--设置宽和高
renderer.setSize(400, 400); 
//实例化渲染器--设置背景
renderer.setClearColor(0x8841ab); 
//实例化渲染器--添加到dom
document.body.appendChild(renderer.domElement);

//实例化场景
const scene = new THREE.Scene(); 

//实例化相机
const camera = new THREE.PerspectiveCamera(45, 1, 1, 200); 
camera.position.set(0, 0, 15);


renderer.render( scene, camera );
</script>
</body>
</html>